﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DapperExtensions.Mapper;
using ZLWeb.WebApiEntityBase;

namespace WeChatCardProxy.WebApiEntity
{
    public class Access_token : ResponseResultInfo
    {
        public string component_appid { get; set; }

        public DateTime expires_Time { get; set; }

        public string component_access_token { get; set; }

        public DateTime UpdateTime { get; set; }
    }

    public class Access_tokenMapper : ClassMapper<Access_token>
    {
        public Access_tokenMapper()
        {
            Table("Component_access_token");
            Map(f => f.component_appid).Column("component_appid").Key(KeyType.Assigned);
            Map(f => f.expires_Time).Column("expires_Time");
            Map(f => f.component_access_token).Column("component_access_token");
            Map(f => f.UpdateTime).Column("UpdateTime");
        }
    }
}
